package nickthissen.iracing.datamodels;

import com.google.gson.Gson;

public class Message 
{
    public String Title;
	public String Contents;
	
	public static Message fromJson(String json)
	{
		Gson g = new Gson();
		MessageDataModel data = g.fromJson(json, MessageDataModel.class);
		return data.d;		
	}
	
	private class MessageDataModel
	{
		public Message d;
	}
}
